package com.zn.mapper;

import com.zn.entity.CustomerWithdraw;
import com.zn.web.dto.CustomerWithdrawDto;
import com.zn.web.vo.CustomerCapitalVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface CustomerWithdrawMapper {
    int insertSelective(CustomerWithdraw record);
    Map<String,Object> countWithdrawData(@Param("customerId")String customerId,@Param("createTime")String createTime);
    List<CustomerWithdraw> selectBySqlWhere(CustomerWithdraw customerWithdraw);
    int updateByPrimaryKeySelective(CustomerWithdraw record);

    //根据用户分页获取资金记录（入金和出金记录）
    List<CustomerCapitalVo> getCustomerCapitalRecord(CustomerWithdrawDto record);
    int getCustomerCapitalRecordCount(CustomerWithdrawDto record);
}